package com.graduation.smartparkingplatform.Dao;

import com.graduation.smartparkingplatform.Pojo.Device;
import com.graduation.smartparkingplatform.Pojo.Distinguish;
import com.graduation.smartparkingplatform.Pojo.PayingRecord;
import com.graduation.smartparkingplatform.Pojo.Visitor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface ComponentMapper {
  public List<Visitor> getLog();

  public List<Device> getLogDevice();

  public Integer spaceTotal();

  public Integer distinguishAll(@Param("day") String day);

  public List<BigDecimal> income(@Param("day") String day);

  public Integer distinguish(@Param("day") String day, @Param("dredType") String dredType);

  public Integer visitorCount(@Param("day") String day);

  public List<Distinguish> weekDistinguish(@Param("dredType") String dredType);

  public List<Distinguish> getRecord();

  public List<PayingRecord> getPayment(@Param("day") String day);
}
